<?php
/**
 * Created by PhpStorm.
 * User: hebidu
 * Date: 15/11/29
 * Time: 16:40
 */

namespace Home\Controller;


use Admin\Api\MemberApi;
use Common\Util\EnvCheck;
use Shop\Api\InviteRankingApi;

class ShareController extends HomeController {

    public function index(){

        $check = new EnvCheck();
        //Android 链接
        $android_url = "http://a.app.qq.com/o/simple.jsp?pkgname=com.itboye.banma&g_f=991653";
        $ios_url = "http://a.app.qq.com/o/simple.jsp?pkgname=com.itboye.banma&g_f=991653";

        $this->assign("url",$android_url);
        $this->assign("is_weixin",0);
        $this->assign("is_iphone",0);

        if($check->isWeixinBrowse()){
            $this->assign("is_weixin",1);
        }

        if($check->isIphone()){
            //IOS 链接
            $this->assign("url",$ios_url);
            $this->assign("is_iphone",1);
        }

        $this->boye_display();
    }


}